﻿using Hotel.BLL;
using Hotel.DAL;
using Hotel.Model;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace Hotel.API.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class MemberController : ControllerBase
    {
        public MemberController(MemberBLL memberBLL)
        {
            MemberBLL = memberBLL;
        }
        public MemberBLL MemberBLL { get; }
        [HttpPost("MebberAdd")]
        public int MebberAdd(Member member)
        {
            try
            {
                return MemberBLL.MebberAdd(member);
            }
            catch (Exception)
            {

                throw;
            }

        }
    }
}
